<template>
  <button :type="htmlType" :class="classes" :disabled="disabled" @click="handleClick">
    <i :class="iconLoadingClasses" v-if="loading"></i>
    <i :class="iconClasses" v-if="icon && !loading"></i>
    <span v-if="!scope.showSlot && isHtml " v-html="text"></span>
    <span v-if="!scope.showSlot && !isHtml" v-text="text"></span>
    <span v-if="scope.showSlot" ref="slot">
      <slot></slot>
    </span>
  </button>
</template>
<script type="text/ecmascript-6"  src="./index.js"></script>
